package fr.gfo.beans;

import java.util.List;

public class Queue {

	private String paused = null;
	private String mbleft = null;
	private String diskspace2 = null;
	private String diskspace1 = null;
	private String diskspacetotal1 = null;
	private String timeleft = null;
	private String mb = null;

	private String limit = null;
	private String kbpersec = null;
	private String speedlimit = null;

	private List<Slot> list = null;

	public Queue() {
	}

	public String getPaused() {
		return paused;
	}

	public void setPaused(String paused) {
		this.paused = paused;
	}

	public String getMbleft() {
		return mbleft;
	}

	public void setMbleft(String mbleft) {
		this.mbleft = mbleft;
	}

	public String getDiskspace2() {
		return diskspace2;
	}

	public void setDiskspace2(String diskspace2) {
		this.diskspace2 = diskspace2;
	}

	public String getDiskspace1() {
		return diskspace1;
	}

	public void setDiskspace1(String diskspace1) {
		this.diskspace1 = diskspace1;
	}

	public String getDiskspacetotal1() {
		return diskspacetotal1;
	}

	public void setDiskspacetotal1(String diskspacetotal1) {
		this.diskspacetotal1 = diskspacetotal1;
	}

	public String getTimeleft() {
		return timeleft;
	}

	public void setTimeleft(String timeleft) {
		this.timeleft = timeleft;
	}

	public String getMb() {
		return mb;
	}

	public void setMb(String mb) {
		this.mb = mb;
	}

	public String getLimit() {
		return limit;
	}

	public void setLimit(String limit) {
		this.limit = limit;
	}

	public String getKbpersec() {
		return kbpersec;
	}

	public void setKbpersec(String kbpersec) {
		this.kbpersec = kbpersec;
	}

	public String getSpeedlimit() {
		return speedlimit;
	}

	public void setSpeedlimit(String speedlimit) {
		this.speedlimit = speedlimit;
	}

	public List<Slot> getList() {
		return list;
	}

	public void setList(List<Slot> list) {
		this.list = list;
	}

	public void addList(Slot slot) {
		this.list.add(slot);
	}
	
	public String toString() {
		String retour = "Queue : " + timeleft + "@" + kbpersec + " | " + paused + "\n";
		for (Slot s : this.list) {
			retour += s + "\n";
		}
		return retour;
	}
}
